package session1.other;

import session1.certification.Parent;

public class Child extends Parent {

	public void testIt() {

		// Inheritance access;
		System.out.println("Inheritance x: " + this.x);

		// Reference access: ERROR
		// Parent obj = new Parent();
		// System.out.println("" + obj.x);
	}

	public static void main(String[] args) {
		new Child().testIt();
		System.out.println("new Child().x: " + new Child().x);
		int x = new Child().x + 1;
		System.out.println("x: " + x);
	}
}
